package com.dlc.shop.systemtest.api.amount;

import com.dlc.shop.bean.app.dto.UserDto;
import com.dlc.shop.bean.param.ScoreConfigParam;
import com.dlc.shop.systemtest.constants.Constant;
import com.dlc.shop.systemtest.util.HttpUtil;

/**
 * @author lanhai
 */
public class UserApi {

    public static UserDto userInfo(){
        String url = Constant.API_URL + "/p/user/userInfo";
        return HttpUtil.get(url, UserDto.class);
    }
    public static Double getBalanceInfo(){
        String url = Constant.API_URL + "/p/userBalance/getBalanceInfo";
        return HttpUtil.get(url,Double.class);
    }
    public static void saveScoreConfig(ScoreConfigParam scoreConfig){
        String url = Constant.PLATFORM_URL + "/user/scoreConfig";
        HttpUtil.post(url,scoreConfig);
    }
}
